MV_PHYSDK_SITE = repo://vendor/marvell/3220sdk
MV_PHYSDK_INSTALL_STAGING = YES
MV_PHYSDK_INSTALL_TARGET = YES
MV_PHYSDK_DEPENDENCIES =

MV_PHYSDK_TARGET_CFLAGS =

MV_PHYSDK_MAKE_ENV =
MV_PHYSDK_MAKE_FLAGS = \
	INSTALL=$(INSTALL) \
	TARGET_CROSS=$(TARGET_CROSS) \
	EXTRACFLAGS="$(TARGET_CFLAGS) $(MV_PHYSDK_TARGET_CFLAGS)" \
	STAGING_DIR=$(STAGING_DIR) \
	TARGET_DIR=$(TARGET_DIR)
MV_PHYSDK_MAKE = $(MV_PHYSDK_MAKE_ENV) $(MAKE) $(MV_PHYSDK_MAKE_FLAGS)

define MV_PHYSDK_BUILD_CMDS
	$(MV_PHYSDK_MAKE) -C $(@D) build
endef

define MV_PHYSDK_CLEAN_CMDS
	$(MV_PHYSDK_MAKE) -C $(@D) clean
endef

define MV_PHYSDK_INSTALL_STAGING_CMDS
	$(MV_PHYSDK_MAKE) -C $(@D) install-lib
endef

define MV_PHYSDK_UNINSTALL_STAGING_CMDS
	$(MV_PHYSDK_MAKE) -C $(@D) uninstall-lib
endef

define MV_PHYSDK_INSTALL_TARGET_CMDS
	$(MV_PHYSDK_MAKE) -C $(@D) install
endef

define MV_PHYSDK_UNINSTALL_TARGET_CMDS
	$(MV_PHYSDK_MAKE) -C $(@D) uninstall
endef

$(eval $(call GENTARGETS))
